package entity.fields;

import controllers.FieldController;
import dto.Field;

public class Jail extends Field {
	
	private boolean sendsToJail;
	
	public Jail(String name, boolean sendsToJail, FieldController fieldController) {
		super(name, fieldController);
		
		this.sendsToJail = sendsToJail;
	}
	
	public boolean isSendsToJail() {
		return this.sendsToJail;
	}
	
	@Override
	public String toString() {
		return getName();
	}
	
	@Override
	public String getDescription(){
		if (sendsToJail){
			return "Dette felt sender og sætter dig i fængsel i 3 ture";
		}
		
		else {
			return "Man kommer ud af fængslet ved enten at: +" +
					"1. Slå to ens" +
					"2. Betaler 1000";
		}
	}

	@Override
	public void reset() {}

}
